<table id="role-table"></table>

<script type="text/html" id="role-table-toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm layui-btn-primary layui-border-green" lay-event="add" perm="add-role">
            <i class="layui-icon-add-circle layui-icon"></i>&nbsp;角色
        </button>
    </div>
</script>

<script type="text/html" id="role-table-tools">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="md" perm="modify-role">
            编辑
        </button>
        <button class="layui-btn layui-btn-primary layui-border-red layui-btn-xs" lay-event="rm" perm="remove-role">
            删除
        </button>
        <button class="layui-btn layui-btn-primary layui-border-green layui-btn-xs" lay-event="grant"
                perm="grant-role-auth">
            授权
        </button>
    </div>
</script>